package com.soft.javase.day04.raisesalary;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/21
 */
class Manager extends Employee {
    private String level;

    public Manager(String name, String address, String ID, double wage, int workAge, String level) {
        super(name, address, ID, wage, workAge);
        this.level = level;
    }

    public String getLevel() {
        return level;
    }

    @Override
    public void raiseSalary() {
        setWage(getWage() * 1.2);
    }

    @Override
    public String toString() {
        return "Manager{level=" + level + ", ID=" + getID() + ", wage=" + getWage() +
                ", workAge=" + getWorkAge() + ", name=" + getName() +
                ", address=" + getAddress() + "}";
    }
}
